<div [ngClass]="{'gray': color, '': !color}"></div>
<div class="all_choose" *ngIf="hiddenCheckAll">
  <div class="all_choose_head">
  <div class="radio" (click)="showAllgreen()">
    <span class="radio_center" *ngIf="showAllGreen === 1"></span>
  </div>&nbsp;&nbsp;&nbsp;&nbsp;<span class="chooseAll">全选</span>
  </div>
  <div class="head_del_div" (click)="delAllGoods()">
    <img src="assets/cancel/wastebin.png" class="del_img">
  </div>
</div>
<div>
  <ul>
    <li *ngFor=" let item of goodsmsg; let key = index">
      <div class="box" *ngIf="hiddenList[key]">
        <div class="left_div">
          <div class="radio" (click)="checkMsg(key)">
            <span class="radio_center" *ngIf="showGreen[key]===1"></span>
          </div>
          <div class="lowPrice_div_box" >
            <img src="{{item.g_img}}" (click)="goDetail(key)">
          <div class="lowPrice_div" *ngIf="item.g_discount !== 0">
            直降
          </div>
          </div>
        </div>
        <div class="right_div">
          <div class="top_div">特级 优质 原生态 {{item.g_title}}</div>
          <div class="botom_div">
            <span class="price_span">￥ {{item.g_price-item.g_discount}}/t</span>
            <span class="count_span">x {{item.goods_count}}</span>
            <div class="oldprice" *ngIf="item.g_discount !== 0">
              ￥ {{item.g_price}}/t
            </div>
          </div>
        </div>
        <div class="del_div" (click)="delGoods(key)">
          <img src="assets/cancel/wastebin.png" class="del_img">
        </div>
      </div>
    </li>
  </ul>
</div>
    <div class="confirmDel" *ngIf="showConfirmDel">
      <div class="confirmDel_top">
       <span>确实要删除该商品吗?</span>
      </div>
      <div class="confirmDel_botom">
        <div class="cancel" (click)="cancelDel()">
         <span>取消</span>
        </div>
        <div class="confirm" (click)="confirmDelete()">
          <span>确定</span>
        </div>
      </div>
    </div>
<div class="payMoney">
  <div class="pay_left">
    <div class="pay_sum">合计 ：</div>
    <div class="pay_price">￥ {{payMoney}}</div>
    <div class="pay_count">( 共 <span>{{num}}</span> 件 )</div>
  </div>
  <div class="pay_right" (click)="paymoney()">
    <span class="pay_all">结算 ( {{num}} ) </span>
  </div>
</div>
